package com.daihou.model.ceres;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author liujintao
 * @date 2021/2/3 14:33
 */

public enum ResourceUrlEnum {
    FORECASTOUTQUERY,
    FORECASTOUTTEMPLATEDOWNLOAD,
    FORECASTOUTIMPORT,
    PUSHDATA,
    GETCASEMAININFOBYPHONE,
    GETBYID,
    IDCHECK,
    TALKSKILLINSERT,
    TALKSKILLUPDATE,
    TALKSKILLQUERY,
    TALKSKILLQUERYBYID,
    TALKSKILLDEL,
    TALKSKILLQUERYALL,
    TALKSKILLQUERYLOG,
    SHOWNUM,
    TASKPLANINSERT,
    TASKPLANUPDATE,
    TASKPLANQUERY,
    TASKPLANQUERYBYID,
    TASKPLANDEL,
    ENABLE,
    SUSPEND,
    TASKPLANQUERYLOG,
    TASKINSERT,
    TASKUPDATE,
    TASKQUERY,
    QUERYBYID,
    TASKRUN,
    TASKDEL,
    QUERYLOG,
    PAUSE,
    GETRECORDFILE,
    NUMBERPOOLUSERQUERY,
    NUMBERPOOLQUERY,
    INSERT,
    UPDATE,
    DEL,
    EXPORT,
    TEMPLATEDOWNLOAD,
    QUERY,
    UPLOADFAILRESULT,
    GETTASKTELLIST,
    RECORDQUERY;

//    public static void main(String[] args) {
//        ResourceUrlEnum[] list = ResourceUrlEnum.values();
//        ResourceBundle bundle = ResourceBundle.getBundle("resource", Locale.CHINA);
//        List<String> ss = new ArrayList<>();
//        for (ResourceUrlEnum resourceUrlEnum : list) {
//            boolean is = bundle.keySet().stream().anyMatch(s ->
//                    s.equalsIgnoreCase(resourceUrlEnum.name() + ".uri")
//            );
//            if (!is) {
//                ss.add(resourceUrlEnum.name());
//            }
//        }
//        System.out.println("错误字段" + ss.toString());
//    }
}
